import database


# get book info
def book_info():
    book_list = database.book_info()
    return book_list
    # print(book_list)


# get book id list
def book_id():
    book_list = database.get_book_id()
    book_id_list = []
    for item in book_list:
        book_id_list.append(str(item[0]))
    return book_id_list


if __name__ == "__main__":
    # list all books
    book_info()
    # get book id list
    book_id()
